import request from '@/utils/request'

// 创建回收出库单
export function createOutboundOrder(data) {
  return request({
    url: '/system/outbound-order/create',
    method: 'post',
    data: data
  })
}

// 更新回收出库单
export function updateOutboundOrder(data) {
  return request({
    url: '/system/outbound-order/update',
    method: 'put',
    data: data
  })
}

// 删除回收出库单
export function deleteOutboundOrder(id) {
  return request({
    url: '/system/outbound-order/delete?id=' + id,
    method: 'delete'
  })
}

// 获得回收出库单
export function getOutboundOrder(id) {
  return request({
    url: '/system/outbound-order/get?id=' + id,
    method: 'get'
  })
}

// 获得回收出库单分页
export function getOutboundOrderPage(params) {
  return request({
    url: '/system/outbound-order/page',
    method: 'get',
    params
  })
}
// 导出回收出库单 Excel
export function exportOutboundOrderExcel(params) {
  return request({
    url: '/system/outbound-order/export-excel',
    method: 'get',
    params,
    // responseType: 'blob'
  })
}